<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06_函数</title>
</head>
<body>
<script>
    function  f1(){
        console.log("f1");
    }
    f1();
    f1();
    f1();
    function f2(n){
        console.log("f2");
        console.log(n);
    }
    f2(10);
    f2(true);
    f2("31312321 e12w ")

    function f3(x,y){
        console.log("f3");
        console.log(x+y);
    }
    f3(10,20);
    f3(10,20,30);
    f3(10);

    function f4(x,y){
        console.log("f4");
        return x+y;
    }
    var r=f4(10,20);
    console.log(r);
    console.log(f4(10,20));


    (function (){
        console.log("匿名函数");
    })();
    var f5=function (){
        console.log("f5");
    }
    f5();
   console.log(f5);
   console.log(typeof f5);
   const f6= ()=>{
       console.log("f6");
   }
   f6();

</script>
</body>
</html>